package com.scut.online_black_market.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderResponse {

    @ApiModelProperty(value = "商品id", name = "productId", example = "1")
    private BigInteger productId;

    @ApiModelProperty(value = "商品名称", name = "productName", example = "书包")
    private String productName;

    @ApiModelProperty(value = "商品价格", name = "productPrice",example = "10.0")
    private double productPrice;

    @ApiModelProperty(value = "商品图片url", name = "productPictureLocation", example = "http://127.1.0.1:111111111111111111111111111111111.jpg")
    private String productPictureLocation;

    @ApiModelProperty(value = "出售人Id", name = "sellManId", example = "201830130301")
    private String sellManId;

    @ApiModelProperty(value = "购买时间", name = "buyTime" , example = "2020-11-14T02:51:40.821637512")
    private LocalDateTime buyTime;

    @ApiModelProperty(value = "订单状态", name = "state", example = "1")
    private int state;
}
